moving_average_filter Function

public pure function moving_average_filter(navg, x) result(rst)

Applies a moving average filter to a signal.

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: navg

The size of the averaging window. This parameter must be positive and non-zero.

real(kind=real64), intent(in) :: x(:)

An N-element array containing the signal to filter.

Return Value real(kind=real64), allocatable, (:)

An N-element array containing the filtered signal.